import os


def get_folder_size(path):
    if os.path.isdir(path):
        folder_size = 0
        file_list = os.listdir(path)
        for f in file_list:
            file_path = os.path.join(path, f)
            if os.path.isfile(f):
                folder_size += os.path.getsize(f)
            else:
                reget = get_folder_size(file_path)
                folder_size += reget
        return folder_size
    elif os.path.isfile(path):
        return os.path.getsize(path)


size = get_folder_size(os.getcwd())
print(size)


